package com.springcloud.market.user.controller;

import com.springcloud.market.user.dto.UserDTO;
import com.springcloud.market.user.entity.User;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public class UserController {
    @PostMapping("/registerUser")
    public User registerUser(@RequestBody UserDTO userDTO) {
        return userService.registerUser(userDTO);
    }
}
